<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php for ($i = 0, $n = count($list); $i < $n; $i ++) :

	$count_sn = $i + 1;
	
	if ($count_sn == 1 && $count_sn != $n) {
	mods5spotlightHelper::renderItem($list[$i], $params, $access);
	}
	
	if ($count_sn > 1 && $count_sn != $n) {
	mods5spotlightHelper_others::renderItem($list[$i], $params, $access);
	}
	
	if ($count_sn == $n) {
	mods5spotlightHelper_last::renderItem($list[$i], $params, $access);
	}
	
?>
		
<?php endfor; ?>
